-- GENERATED SPELL FOR [Spore] --


function spell0_16286(pUnit, Event) --@Fungal Creep,Self--
pUnit:FullCastSpellOnTarget(29232,pUnit)
pUnit:RegisterEvent('Sorts_16286', 548, 1)
end

function Sorts_16286(pUnit, Event)
local choix_sorts_16286 = math.random(0, 0)
if choix_sorts_16286 == 0 then
pUnit:RegisterEvent('spell0_16286', 1, 1)
end
end

function mob16286_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16286', math.random(1500, 3000), 1)
end

function mob16286_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16286_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16286_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16286, 1, 'mob16286_Action')
RegisterUnitEvent(16286, 2, 'mob16286_Leave')
RegisterUnitEvent(16286, 3, 'mob16286_Kill')
RegisterUnitEvent(16286, 4, 'mob16286_Die')
